package com.hao.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * 
 * @TableName b_user
 */
@TableName(value ="b_user")
@Data
public class User implements Serializable {
    public static final int NormalUser=1;
    public static final int DemoUser = 2;
    public static final int AdminUser=3;
    @TableField(exist = false)
    public String getRePassword;
    @TableField(exist = false)
    public String captchaText;
    @TableId(type = IdType.AUTO)
    private String id;

    /**
     * 用户名 
     */
    @TableField
    private String username;

    /**
     * 密码
     */
    @TableField
    private String password;

    /**
     * 昵称
     */
    @TableField
    private String nickname;

    /**
     * 手机
     */
    @TableField
    private String mobile;

    /**
     * 邮箱
     */
    @TableField
    private String email;

    /**
     * 描述
     */
    @TableField
    private String description;

    /**
     *  1普通用户 2演示帐号 3管理员
     */
    @TableField
    private String role;

    /**
     * 0正常 1封号
     */
    @TableField
    private String status;

    /**
     * 1求职者 2招聘者
     */
    @TableField
    private String jobRole;

    /**
     * 积分
     */
    @TableField
    private String score;

    /**
     * 头像
     */
    @TableField
    private String avatar;

    @TableField(exist = false)
    public MultipartFile avatarFile;
    /**
     * token
     */
    @TableField
    private String token;

    /**
     * 时间
     */
    @TableField
    private String createTime;

    /**
     * 推送邮箱
     */
    @TableField
    private String pushEmail;

    /**
     * 推送开关
     */
    @TableField
    private Integer pushSwitch;

    /**
     * [ref: <> thing.thing_id]
     */
    @TableField
    private Integer wish;
}